DisposeUnicodeToTextRunInfo
Releases the memory allocated for the specified Unicode converter object.
pascal OSStatus DisposeUnicodeToTextRunInfo ( UnicodeToTextRunInfo *ioUnicodeToTextRunInfo);
ioUnicodeToTextRunInfo
- A pointer to a Unicode converter object. On input, you specify a Unicode converter object that points to the conversion information to be disposed of, which your application created using the function
CreateUnicodeToTextRunInfo
(page 145),
CreateUnicodeToTextRunInfoByEncoding
(page 147), or
CreateUnicodeToTextRunInfoByScriptCode
(page 149).- function result
- A result code. See "Text Encoding Conversion Manager Result Codes" (page 42) in the chapter "Basic Text Types Reference."
DISCUSSION
TheDisposeUnicodeToTextRunInfo
function disposes of the Unicode converter object specified by theioUnicodeToTextRunInfo
parameter and releases the memory allocated for it. Your application should not attempt to dispose of the same Unicode converter object more than once.You must use this function to release the memory only for a Unicode converter object that your application created through the function
CreateUnicodeToTextRunInfo
(page 145),
CreateUnicodeToTextRunInfoByEncoding
(page 147), or
CreateUnicodeToTextRunInfoByScriptCode
(page 149).You must not use it for any other type of Unicode converter object.
If your application specifies an invalid Unicode converter object, such as
NULL
, the function returnsparamErr
.